package z_app_lotto2;

import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;

class VectorTable extends JFrame {
	Vector data;
	JTable table;
	JScrollPane scroll;
	Container cont;

	public VectorTable() {
		cont = this.getContentPane();
		cont.setLayout(null);

		// String header[] = {"a"};
		// String v[][] = {{"aa"},{"bb"},{"cc"}};

		Vector v = new Vector();
		v.add("a");
		v.add("a");
		v.add("a");
		v.add("a");
		v.add("a");
		Vector header = new Vector();
		header.add("H");

		table = new JTable(v, header);
		scroll = new JScrollPane(table);
		scroll.setBounds(30, 30, 200, 100);

		cont.add(scroll);

	}

	public static void main(String args[]) {

		VectorTable t = new VectorTable();
		t.setSize(300, 300);
		t.setVisible(true);
	}
}
